<template>
<div>
    <component :is="icon!" class="icon"></component>
</div>
</template>
<script setup lang="ts">
defineProps({
    icon: {
        type: String
    }
})
</script>
<style scoped>
.icon {
    width: 1rem;
    height: 1em;
    vertical-align: middle;
    margin-right:5px ;
    text-align: center;
    font-size: 18px;
}
</style>